home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2001 August / CMycha200108.iso / Zaczarowane / main.swf / scripts / DefineButton2_260 / BUTTONCONDACTION on(release).as < prev   
Text File  |  2001-06-06  |  706b  |  27 lines

  1. on(release){
  2.    x = getProperty(_root.mc_flagi.mc_flaga2, _X);
  3.    y = getProperty(_root.mc_flagi.mc_flaga2, _Y);
  4.    stopDrag();
  5.    if(_root.losowanie == 2)
  6.    {
  7.       if(20 < x && y < -210 && x < 120 && -310 < y)
  8.       {
  9.          setProperty(_root.mc_flagi.mc_flaga2, _X, 74);
  10.          setProperty(_root.mc_flagi.mc_flaga2, _Y, -254);
  11.          play();
  12.          _root.f2 = 2;
  13.          _root.OK.start();
  14.       }
  15.       else
  16.       {
  17.          setProperty(_root.mc_flagi.mc_flaga2, _X, 0);
  18.          setProperty(_root.mc_flagi.mc_flaga2, _Y, 235);
  19.       }
  20.    }
  21.    else
  22.    {
  23.       setProperty(_root.mc_flagi.mc_flaga2, _X, 0);
  24.       setProperty(_root.mc_flagi.mc_flaga2, _Y, 235);
  25.    }
  26. }
  27.